package com.lingyuan.discounts.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingyuan.common.core.domain.vo.sms.ComputeVo;
import com.lingyuan.common.core.domain.vo.sms.CouponVo;
import com.lingyuan.discounts.domain.Coupon;
import com.lingyuan.discounts.domain.CouponHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: Li Hao Xuan
 * @name: CouponMapper
 * @Description TODO
 */
@Mapper
public interface CouponMapper extends BaseMapper<Coupon> {

    Coupon findCouponId(@Param("couponId") Long couponId);

    List<CouponHistory> findCoupon();

    void updUseCount(@Param("id") Long id);
}
